<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交动态 - 高级筛选</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4263eb;
            --primary-light: #eef0ff;
            --secondary: #36b37e;
            --light-gray: #f8f9fa;
            --dark-gray: #343a40;
            --text-gray: #6c757d;
            --border-color: #e9ecef;
            --danger: #e74c3c;
            --repost-color: #17a2b8;
        }
        
        body {
            background-color: #f3f4f6;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        /* 头部样式 */
        .site-header {
            background-color: white;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            background-color: var(--light-gray);
            border: none;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 20px;
            width: 100%;
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-gray);
        }
        
        .search-input:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(66, 99, 235, 0.2);
        }
        
        .nav-links .nav-link {
            color: var(--dark-gray);
            font-weight: 500;
            margin-left: 1.5rem;
            transition: color 0.2s;
        }
        
        .nav-links .nav-link:hover,
        .nav-links .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 筛选区域 */
        .filters-section {
            background-color: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .filter-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--dark-gray);
        }
        
        .reset-filters {
            color: var(--primary);
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .filter-groups {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        
        .filter-group {
            flex: 1;
            min-width: 200px;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.75rem;
            font-weight: 500;
            color: var(--dark-gray);
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .filter-chip {
            background-color: var(--light-gray);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 0.35rem 0.9rem;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .filter-chip:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .custom-select {
            width: 100%;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background-color: white;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l4-4H4l4 4z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 16px;
        }
        
        /* 高级筛选切换 */
        .advanced-toggle {
            text-align: center;
            margin-top: 1rem;
        }
        
        .toggle-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin: 0 auto;
        }
        
        .advanced-filters {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed var(--border-color);
            display: none;
        }
        
        .advanced-filters.show {
            display: block;
        }
        
        /* 筛选结果统计 */
        .results-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 0 0.25rem;
        }
        
        .results-count {
            color: var(--text-gray);
            font-size: 0.9rem;
        }
        
        .sort-options {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .sort-label {
            font-size: 0.9rem;
            color: var(--text-gray);
        }
        
        /* 主体内容 */
        .main-content {
            padding: 2rem 0;
        }
        
        /* 动态卡片样式 */
        .feed-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .feed-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        
        .feed-header {
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-info {
            flex-grow: 1;
        }
        
        .user-name {
            font-weight: 600;
            color: var(--dark-gray);
            text-decoration: none;
        }
        
        .user-name:hover {
            color: var(--primary);
        }
        
        .post-time {
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .feed-content {
            padding: 0 1.5rem 1rem;
        }
        
        .post-text {
            margin-bottom: 1rem;
            line-height: 1.8;
        }
        
        /* 转发标识 */
        .repost-indicator {
            padding: 0.5rem 1.5rem;
            background-color: var(--light-gray);
            font-size: 0.85rem;
            color: var(--repost-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* 图片布局 */
        .post-images {
            margin-bottom: 1rem;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            max-height: 500px;
            overflow: hidden;
        }
        
        .single-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .single-image:hover img {
            transform: scale(1.02);
        }
        
        .two-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
        }
        
        .image-item {
            position: relative;
            height: 0;
            padding-bottom: 100%;
            overflow: hidden;
        }
        
        .image-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        /* 动态数据统计 */
        .post-stats {
            padding: 0 1.5rem 0.5rem;
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        /* 动态操作区 */
        .feed-actions {
            padding: 0.75rem 1.5rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.9rem;
            padding: 0.3rem 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .action-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--secondary);
        }
        
        .action-btn.reposted {
            color: var(--repost-color);
        }
        
        /* 推荐标签 */
        .feed-tags {
            padding: 0 1.5rem 1rem;
        }
        
        .tag {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background-color: var(--primary-light);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            transition: all 0.2s;
        }
        
        .tag:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 布局切换器 */
        .layout-switcher {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .view-btn {
            width: 34px;
            height: 34px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        /* 紧凑布局 */
        .compact-card {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }
        
        .compact-content {
            flex-grow: 1;
        }
        
        .compact-images {
            max-width: 200px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        /* 加载更多 */
        .load-more {
            text-align: center;
            margin: 2rem 0;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .grid-layout {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                max-width: 200px;
            }
            
            .nav-text {
                display: none;
            }
            
            .nav-links .nav-link {
                margin-left: 1rem;
            }
            
            .filter-group {
                min-width: 140px;
            }
            
            .compact-card {
                flex-direction: column;
            }
            
            .compact-images {
                max-width: 100%;
                width: 100%;
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                display: none;
            }
            
            .feed-actions {
                justify-content: space-between;
            }
            
            .action-text {
                display: none;
            }
            
            .action-btn {
                gap: 0;
                padding: 0.3rem;
            }
            
            .post-stats {
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            
            .results-stats {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }
    </style>
</head>
<body>
    <!-- 网站头部 -->
    <header class="site-header py-3">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <a href="#" class="logo">SocialHub</a>
                
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索动态、话题或用户...">
                </div>
                
                <nav class="nav-links d-flex align-items-center">
                    <a href="#" class="nav-link">
                        <i class="fas fa-home me-1"></i>
                        <span class="nav-text">首页</span>
                    </a>
                    <a href="#" class="nav-link active">
                        <i class="fas fa-compass me-1"></i>
                        <span class="nav-text">发现</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-bell me-1"></i>
                        <span class="nav-text">通知</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-envelope me-1"></i>
                        <span class="nav-text">消息</span>
                    </a>
                    <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar ms-2">
                </nav>
            </div>
        </div>
    </header>
    
    <!-- 主体内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 筛选区域 -->
            <section class="filters-section">
                <div class="filter-header">
                    <h2 class="filter-title">动态筛选</h2>
                    <button class="reset-filters" id="reset-filters">
                        <i class="fas fa-sync-alt"></i>
                        重置筛选条件
                    </button>
                </div>
                
                <div class="filter-groups">
                    <!-- 内容类型筛选 -->
                    <div class="filter-group">
                        <label class="filter-label">内容类型</label>
                        <div class="filter-options">
                            <div class="filter-chip active" data-filter="type" data-value="all">全部</div>
                            <div class="filter-chip" data-filter="type" data-value="text">纯文字</div>
                            <div class="filter-chip" data-filter="type" data-value="image">含图片</div>
                            <div class="filter-chip" data-filter="type" data-value="repost">转发内容</div>
                        </div>
                    </div>
                    
                    <!-- 时间范围筛选 -->
                    <div class="filter-group">
                        <label class="filter-label">时间范围</label>
                        <div class="filter-options">
                            <div class="filter-chip active" data-filter="time" data-value="all">全部时间</div>
                            <div class="filter-chip" data-filter="time" data-value="today">今天</div>
                            <div class="filter-chip" data-filter="time" data-value="week">本周</div>
                            <div class="filter-chip" data-filter="time" data-value="month">本月</div>
                        </div>
                    </div>
                    
                    <!-- 内容来源筛选 -->
                    <div class="filter-group">
                        <label class="filter-label">内容来源</label>
                        <div class="filter-options">
                            <div class="filter-chip active" data-filter="source" data-value="all">全部来源</div>
                            <div class="filter-chip" data-filter="source" data-value="following">关注的人</div>
                            <div class="filter-chip" data-filter="source" data-value="recommended">推荐内容</div>
                            <div class="filter-chip" data-filter="source" data-value="trending">热门内容</div>
                        </div>
                    </div>
                    
                    <!-- 互动量筛选 -->
                    <div class="filter-group">
                        <label class="filter-label">互动热度</label>
                        <select class="custom-select" id="engagement-filter">
                            <option value="all">全部热度</option>
                            <option value="high">高互动</option>
                            <option value="medium">中等互动</option>
                            <option value="low">低互动</option>
                        </select>
                    </div>
                </div>
                
                <!-- 高级筛选切换 -->
                <div class="advanced-toggle">
                    <button class="toggle-btn" id="advanced-toggle">
                        <i class="fas fa-chevron-down"></i>
                        高级筛选
                    </button>
                </div>
                
                <!-- 高级筛选选项 -->
                <div class="advanced-filters" id="advanced-filters">
                    <div class="filter-groups">
                        <!-- 话题标签筛选 -->
                        <div class="filter-group">
                            <label class="filter-label">话题标签</label>
                            <div class="filter-options">
                                <div class="filter-chip" data-filter="tag" data-value="all">全部标签</div>
                                <div class="filter-chip" data-filter="tag" data-value="technology">科技</div>
                                <div class="filter-chip" data-filter="tag" data-value="travel">旅行</div>
                                <div class="filter-chip" data-filter="tag" data-value="food">美食</div>
                                <div class="filter-chip" data-filter="tag" data-value="photography">摄影</div>
                            </div>
                        </div>
                        
                        <!-- 发布设备筛选 -->
                        <div class="filter-group">
                            <label class="filter-label">发布设备</label>
                            <div class="filter-options">
                                <div class="filter-chip active" data-filter="device" data-value="all">全部设备</div>
                                <div class="filter-chip" data-filter="device" data-value="mobile">移动设备</div>
                                <div class="filter-chip" data-filter="device" data-value="desktop">桌面设备</div>
                                <div class="filter-chip" data-filter="device" data-value="official">官方账号</div>
                            </div>
                        </div>
                        
                        <!-- 用户类型筛选 -->
                        <div class="filter-group">
                            <label class="filter-label">用户类型</label>
                            <select class="custom-select" id="user-type-filter">
                                <option value="all">全部用户</option>
                                <option value="verified">认证用户</option>
                                <option value="ordinary">普通用户</option>
                                <option value="organization">机构账号</option>
                            </select>
                        </div>
                    </div>
                </div>
            </section>
            
            <!-- 筛选结果统计和排序 -->
            <div class="results-stats">
                <div class="results-count" id="results-count">找到 <strong>248</strong> 条符合条件的动态</div>
                
                <div class="d-flex align-items-center gap-2">
                    <div class="sort-options">
                        <span class="sort-label">排序方式：</span>
                        <select class="custom-select" id="sort-filter" style="width: auto;">
                            <option value="latest">最新发布</option>
                            <option value="popular">热门程度</option>
                            <option value="most-commented">评论最多</option>
                            <option value="most-shared">转发最多</option>
                        </select>
                    </div>
                    
                    <div class="layout-switcher">
                        <button class="view-btn active" id="list-view" title="列表视图">
                            <i class="fas fa-list"></i>
                        </button>
                        <button class="view-btn" id="grid-view" title="网格视图">
                            <i class="fas fa-th"></i>
                        </button>
                        <button class="view-btn" id="compact-view" title="紧凑视图">
                            <i class="fas fa-align-left"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 动态流容器 -->
            <div class="feed-container" id="feed-container">
                <!-- 原创无图动态 -->
                <article class="feed-card list-card" data-type="text" data-time="today" data-source="following" data-engagement="medium" data-tag="technology" data-device="desktop">
                    <div class="feed-header">
                        <img src="https://picsum.photos/100/100?random=10" alt="用户头像" class="avatar">
                        <div class="user-info">
                            <a href="#" class="user-name">城市规划师李明</a>
                            <div class="post-time">今天 08:30 · 来自网页版</div>
                        </div>
                        <button class="btn btn-sm text-gray-500">
                            <i class="fas fa-ellipsis-h"></i>
                        </button>
                    </div>
                    
                    <div class="feed-content">
                        <div class="post-text">
                            刚刚完成了城市中心公园的总体规划方案，历时三个月的努力终于有了成果。这个方案融合了生态保护、市民休闲和文化展示等多重功能，希望能为城市带来更多活力和绿色空间。接下来就是等待评审结果了，有点紧张又期待！
                        </div>
                        
                        <div class="feed-tags">
                            <a href="#" class="tag">#城市规划</a>
                            <a href="#" class="tag">#景观设计</a>
                            <a href="#" class="tag">#公共空间</a>
                        </div>
                    </div>
                    
                    <div class="post-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>2.4k 浏览</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>32 评论</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-retweet"></i>
                            <span>18 转发</span>
                        </div>
                    </div>
                    
                    <div class="feed-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                            <span class="action-text">点赞 (128)</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                            <span class="action-text">评论</span>
                        </button>
                        <button class="action-btn repost-btn">
                            <i class="fas fa-retweet"></i>
                            <span class="action-text">转发</span>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                            <span class="action-text">收藏</span>
                        </button>
                    </div>
                </article>
                
                <!-- 转发的单图动态 -->
                <article class="feed-card list-card" data-type="repost" data-time="yesterday" data-source="recommended" data-engagement="high" data-tag="food" data-device="mobile">
                    <div class="repost-indicator">
                        <i class="fas fa-retweet"></i>
                        <span><a href="#" class="user-name">旅行爱好者张华</a> 转发了</span>
                    </div>
                    
                    <div class="feed-header">
                        <img src="https://picsum.photos/100/100?random=11" alt="原作者头像" class="avatar">
                        <div class="user-info">
                            <a href="#" class="user-name">美食摄影师陈颖</a>
                            <div class="post-time">昨天 19:45 · 来自 iPhone</div>
                        </div>
                        <button class="btn btn-sm text-gray-500">
                            <i class="fas fa-ellipsis-h"></i>
                        </button>
                    </div>
                    
                    <div class="feed-content">
                        <div class="post-text">
                            今日探店：隐藏在老城区巷子里的一家私房菜馆，老板是位有三十年经验的老师傅，每道菜都透着匠心。这道松鼠鳜鱼外酥里嫩，酸甜汁调配得恰到好处，堪称一绝！
                        </div>
                        
                        <div class="post-images">
                            <div class="single-image">
                                <img src="https://picsum.photos/800/500?random=20" alt="松鼠鳜鱼美食照片">
                            </div>
                        </div>
                        
                        <div class="feed-tags">
                            <a href="#" class="tag">#美食探店</a>
                            <a href="#" class="tag">#传统菜肴</a>
                            <a href="#" class="tag">#城市美食地图</a>
                        </div>
                        
                        <!-- 转发者添加的评论 -->
                        <div class="mt-3 p-3 bg-light rounded">
                            <strong>旅行爱好者张华</strong>：这家我也去过！确实名不虚传，尤其是他们家的红烧肉，肥而不腻，入口即化！
                        </div>
                    </div>
                    
                    <div class="post-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>5.8k 浏览</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>89 评论</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-retweet"></i>
                            <span>42 转发</span>
                        </div>
                    </div>
                    
                    <div class="feed-actions">
                        <button class="action-btn like-btn liked">
                            <i class="fas fa-heart"></i>
                            <span class="action-text">点赞 (567)</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                            <span class="action-text">评论</span>
                        </button>
                        <button class="action-btn repost-btn reposted">
                            <i class="fas fa-retweet"></i>
                            <span class="action-text">已转发</span>
                        </button>
                        <button class="action-btn save-btn saved">
                            <i class="fas fa-bookmark"></i>
                            <span class="action-text">已收藏</span>
                        </button>
                    </div>
                </article>
                
                <!-- 原创双图动态 -->
                <article class="feed-card list-card" data-type="image" data-time="week" data-source="trending" data-engagement="high" data-tag="travel" data-device="mobile">
                    <div class="feed-header">
                        <img src="https://picsum.photos/100/100?random=12" alt="用户头像" class="avatar">
                        <div class="user-info">
                            <a href="#" class="user-name">旅行博主王浩</a>
                            <div class="post-time">3天前 · 来自 Android</div>
                        </div>
                        <button class="btn btn-sm text-gray-500">
                            <i class="fas fa-ellipsis-h"></i>
                        </button>
                    </div>
                    
                    <div class="feed-content">
                        <div class="post-text">
                            徒步虎跳峡，感受大自然的磅礴力量。一边是悬崖峭壁，一边是奔腾的金沙江，每一步都充满挑战但也无比值得。图一是清晨的山间云雾，图二是俯瞰峡谷的壮观景色。
                        </div>
                        
                        <div class="post-images">
                            <div class="two-images">
                                <div class="image-item">
                                    <img src="https://picsum.photos/600/600?random=30" alt="山间云雾景观">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/600/600?random=31" alt="虎跳峡峡谷景观">
                                </div>
                            </div>
                        </div>
                        
                        <div class="feed-tags">
                            <a href="#" class="tag">#徒步旅行</a>
                            <a href="#" class="tag">#自然景观</a>
                            <a href="#" class="tag">#云南旅游</a>
                        </div>
                    </div>
                    
                    <div class="post-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>3.7k 浏览</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>56 评论</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-retweet"></i>
                            <span>29 转发</span>
                        </div>
                    </div>
                    
                    <div class="feed-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                            <span class="action-text">点赞 (324)</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                            <span class="action-text">评论</span>
                        </button>
                        <button class="action-btn repost-btn">
                            <i class="fas fa-retweet"></i>
                            <span class="action-text">转发</span>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                            <span class="action-text">收藏</span>
                        </button>
                    </div>
                </article>
                
                <!-- 转发的无图动态 -->
                <article class="feed-card list-card" data-type="repost" data-time="month" data-source="trending" data-engagement="high" data-tag="technology" data-device="official">
                    <div class="repost-indicator">
                        <i class="fas fa-retweet"></i>
                        <span><a href="#" class="user-name">科技评论员吴迪</a> 转发了</span>
                    </div>
                    
                    <div class="feed-header">
                        <img src="https://picsum.photos/100/100?random=16" alt="原作者头像" class="avatar">
                        <div class="user-info">
                            <a href="#" class="user-name">未来科技研究院</a>
                            <div class="post-time">1周前 · 来自官方账号</div>
                        </div>
                        <button class="btn btn-sm text-gray-500">
                            <i class="fas fa-ellipsis-h"></i>
                        </button>
                    </div>
                    
                    <div class="feed-content">
                        <div class="post-text">
                            最新研究表明，人工智能在医疗诊断领域的准确率已经达到甚至超过人类专家水平。特别是在影像识别方面，AI系统能够在早期发现癌症等疾病的征兆，为患者争取宝贵的治疗时间。这一突破有望彻底改变未来的医疗模式。
                        </div>
                        
                        <div class="feed-tags">
                            <a href="#" class="tag">#人工智能</a>
                            <a href="#" class="tag">#医疗科技</a>
                            <a href="#" class="tag">#未来趋势</a>
                        </div>
                        
                        <!-- 转发者添加的评论 -->
                        <div class="mt-3 p-3 bg-light rounded">
                            <strong>科技评论员吴迪</strong>：这项技术已经在国内几家顶级医院进行试点应用，效果显著。但同时我们也要关注数据隐私和算法公平性等问题，确保技术向善。
                        </div>
                    </div>
                    
                    <div class="post-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>12.3k 浏览</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>215 评论</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-retweet"></i>
                            <span>342 转发</span>
                        </div>
                    </div>
                    
                    <div class="feed-actions">
                        <button class="action-btn like-btn liked">
                            <i class="fas fa-heart"></i>
                            <span class="action-text">点赞 (1,254)</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                            <span class="action-text">评论</span>
                        </button>
                        <button class="action-btn repost-btn reposted">
                            <i class="fas fa-retweet"></i>
                            <span class="action-text">已转发</span>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                            <span class="action-text">收藏</span>
                        </button>
                    </div>
                </article>
            </div>
            
            <!-- 加载更多 -->
            <div class="load-more">
                <button class="btn btn-outline-primary px-5 py-2" id="load-more">
                    <i class="fas fa-spinner fa-spin me-2" style="display: none;"></i>
                    加载更多动态
                </button>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 筛选功能实现
        document.addEventListener('DOMContentLoaded', function() {
            // 获取所有筛选元素
            const filterChips = document.querySelectorAll('.filter-chip');
            const advancedToggle = document.getElementById('advanced-toggle');
            const advancedFilters = document.getElementById('advanced-filters');
            const resetFiltersBtn = document.getElementById('reset-filters');
            const engagementFilter = document.getElementById('engagement-filter');
            const userTypeFilter = document.getElementById('user-type-filter');
            const sortFilter = document.getElementById('sort-filter');
            const searchInput = document.querySelector('.search-input');
            const feedCards = document.querySelectorAll('.feed-card');
            const resultsCount = document.getElementById('results-count').querySelector('strong');
            
            // 高级筛选切换
            advancedToggle.addEventListener('click', function() {
                advancedFilters.classList.toggle('show');
                const icon = this.querySelector('i');
                if (advancedFilters.classList.contains('show')) {
                    icon.classList.remove('fa-chevron-down');
                    icon.classList.add('fa-chevron-up');
                    this.innerHTML = '<i class="fas fa-chevron-up"></i> 收起筛选';
                } else {
                    icon.classList.remove('fa-chevron-up');
                    icon.classList.add('fa-chevron-down');
                    this.innerHTML = '<i class="fas fa-chevron-down"></i> 高级筛选';
                }
            });
            
            // 筛选芯片点击事件
            filterChips.forEach(chip => {
                chip.addEventListener('click', function() {
                    const filterType = this.getAttribute('data-filter');
                    
                    // 移除同类型筛选的其他active类
                    document.querySelectorAll(`.filter-chip[data-filter="${filterType}"]`).forEach(c => {
                        c.classList.remove('active');
                    });
                    
                    // 给当前点击的添加active类
                    this.classList.add('active');
                    
                    // 应用筛选
                    applyFilters();
                });
            });
            
            // 下拉筛选变化事件
            engagementFilter.addEventListener('change', applyFilters);
            userTypeFilter.addEventListener('change', applyFilters);
            sortFilter.addEventListener('change', function() {
                applyFilters();
                // 这里可以添加排序逻辑
            });
            
            // 搜索输入事件
            searchInput.addEventListener('input', debounce(applyFilters, 300));
            
            // 重置筛选按钮
            resetFiltersBtn.addEventListener('click', function() {
                // 重置所有筛选芯片
                filterChips.forEach(chip => {
                    if (chip.getAttribute('data-value') === 'all') {
                        chip.classList.add('active');
                    } else {
                        chip.classList.remove('active');
                    }
                });
                
                // 重置下拉筛选
                engagementFilter.value = 'all';
                userTypeFilter.value = 'all';
                sortFilter.value = 'latest';
                searchInput.value = '';
                
                // 应用筛选
                applyFilters();
            });
            
            // 应用筛选条件
            function applyFilters() {
                // 获取所有筛选条件
                const typeFilter = document.querySelector('.filter-chip[data-filter="type"].active').getAttribute('data-value');
                const timeFilter = document.querySelector('.filter-chip[data-filter="time"].active').getAttribute('data-value');
                const sourceFilter = document.querySelector('.filter-chip[data-filter="source"].active').getAttribute('data-value');
                const tagFilter = document.querySelector('.filter-chip[data-filter="tag"].active')?.getAttribute('data-value') || 'all';
                const deviceFilter = document.querySelector('.filter-chip[data-filter="device"].active').getAttribute('data-value');
                const engagementFilterValue = engagementFilter.value;
                const userTypeFilterValue = userTypeFilter.value;
                const searchTerm = searchInput.value.toLowerCase().trim();
                
                let visibleCount = 0;
                
                // 对每个动态卡片应用筛选
                feedCards.forEach(card => {
                    const cardType = card.getAttribute('data-type');
                    const cardTime = card.getAttribute('data-time');
                    const cardSource = card.getAttribute('data-source');
                    const cardTag = card.getAttribute('data-tag');
                    const cardDevice = card.getAttribute('data-device');
                    const cardEngagement = card.getAttribute('data-engagement');
                    const cardText = card.textContent.toLowerCase();
                    
                    // 检查是否符合所有筛选条件
                    const typeMatch = typeFilter === 'all' || cardType === typeFilter;
                    const timeMatch = timeFilter === 'all' || cardTime === timeFilter;
                    const sourceMatch = sourceFilter === 'all' || cardSource === sourceFilter;
                    const tagMatch = tagFilter === 'all' || cardTag === tagFilter;
                    const deviceMatch = deviceFilter === 'all' || cardDevice === deviceFilter;
                    const engagementMatch = engagementFilterValue === 'all' || cardEngagement === engagementFilterValue;
                    // 简化的用户类型匹配（实际应用中应从数据属性获取）
                    const userTypeMatch = userTypeFilterValue === 'all' || 
                                        (userTypeFilterValue === 'verified' && card.querySelector('.user-name').textContent.includes('师')) ||
                                        (userTypeFilterValue === 'organization' && card.querySelector('.user-name').textContent.includes('研究院'));
                    const searchMatch = !searchTerm || cardText.includes(searchTerm);
                    
                    // 如果所有条件都匹配，则显示卡片，否则隐藏
                    if (typeMatch && timeMatch && sourceMatch && tagMatch && 
                        deviceMatch && engagementMatch && userTypeMatch && searchMatch) {
                        card.style.display = '';
                        visibleCount++;
                    } else {
                        card.style.display = 'none';
                    }
                });
                
                // 更新结果计数
                resultsCount.textContent = visibleCount;
            }
            
            // 布局切换功能
            const listViewBtn = document.getElementById('list-view');
            const gridViewBtn = document.getElementById('grid-view');
            const compactViewBtn = document.getElementById('compact-view');
            const feedContainer = document.getElementById('feed-container');
            
            // 切换到列表视图
            listViewBtn.addEventListener('click', function() {
                setActiveView(this);
                feedContainer.classList.remove('grid-layout', 'compact-layout');
                feedCards.forEach(card => {
                    card.classList.remove('grid-card', 'compact-card');
                    card.classList.add('list-card');
                });
            });
            
            // 切换到网格视图
            gridViewBtn.addEventListener('click', function() {
                setActiveView(this);
                feedContainer.classList.add('grid-layout');
                feedContainer.classList.remove('compact-layout');
                feedCards.forEach(card => {
                    card.classList.add('grid-card');
                    card.classList.remove('list-card', 'compact-card');
                });
            });
            
            // 切换到紧凑视图
            compactViewBtn.addEventListener('click', function() {
                setActiveView(this);
                feedContainer.classList.remove('grid-layout');
                feedContainer.classList.add('compact-layout');
                feedCards.forEach(card => {
                    card.classList.remove('list-card', 'grid-card');
                    card.classList.add('compact-card');
                });
            });
            
            // 设置当前激活的视图按钮
            function setActiveView(btn) {
                document.querySelectorAll('.view-btn').forEach(button => {
                    button.classList.remove('active');
                });
                btn.classList.add('active');
            }
            
            // 点赞功能
            document.querySelectorAll('.like-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const text = this.querySelector('.action-text').textContent;
                    const count = parseInt(text.match(/\d+/)[0]);
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.querySelector('.action-text').textContent = `点赞 (${count + 1})`;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.querySelector('.action-text').textContent = `点赞 (${count - 1})`;
                    }
                });
            });
            
            // 收藏功能
            document.querySelectorAll('.save-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('saved');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('saved')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.querySelector('.action-text').textContent = '已收藏';
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.querySelector('.action-text').textContent = '收藏';
                    }
                });
            });
            
            // 转发功能
            document.querySelectorAll('.repost-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('reposted');
                    
                    if (this.classList.contains('reposted')) {
                        this.querySelector('.action-text').textContent = '已转发';
                    } else {
                        this.querySelector('.action-text').textContent = '转发';
                    }
                });
            });
            
            // 加载更多功能
            document.getElementById('load-more').addEventListener('click', function() {
                const spinner = this.querySelector('.fa-spinner');
                spinner.style.display = 'inline-block';
                this.disabled = true;
                
                // 模拟加载延迟
                setTimeout(() => {
                    spinner.style.display = 'none';
                    this.disabled = false;
                    alert('已加载全部动态');
                }, 1500);
            });
            
            // 防抖函数
            function debounce(func, wait) {
                let timeout;
                return function() {
                    const context = this;
                    const args = arguments;
                    clearTimeout(timeout);
                    timeout = setTimeout(() => func.apply(context, args), wait);
                };
            }
        });
    </script>
</body>
</html>
    
